/**
*  Parent class for billable items, used for polymorphism list in invoice
*/
package source;
import java.util.Map;

import activejdbc.Model;

public abstract class Billable extends Model {

	private int treatmentRecord_id;
	private String treatmentName;
	private int quantity;
	private int price;
	private int total;
   
	public Billable(){
		super();
	}
  
/*  public Billable(int treatmentRecord_id, String treatmentName, int quantity, int price){
    this.treatmentRecord_id=treatmentRecord_id;
    this.treatmentName=treatmentName;
    this.quantity=quantity;
    this.price=price;
    total=price*quantity;
  }*/
  
	public Billable (Map<String, String> values) {
		this.fromMap(values);
		this.saveIt();
	}
	
	public int getRecordID(){
		return treatmentRecord_id;
	}
  
	public String getTreatmentName(){
		return treatmentName;
	}
	
	public int getQuantity(){
		return quantity;
	}

	public int getPrice(){
		return price;
	}

	public int getTotal(){
		return total;
	}
}
